<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Kinetis Bootloader: bootloader_common.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Kinetis Bootloader
   &#160;<span id="projectnumber">2.0.0</span>
   </div>
   <div id="projectbrief">Common bootloader for Kinetis devices</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Introduction</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('bootloader__common_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">bootloader_common.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2013-2015, Freescale Semiconductor, Inc.</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * All rights reserved.</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * Redistribution and use in source and binary forms, with or without modification,</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * are permitted provided that the following conditions are met:</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * o Redistributions of source code must retain the above copyright notice, this list</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *   of conditions and the following disclaimer.</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * o Redistributions in binary form must reproduce the above copyright notice, this</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *   list of conditions and the following disclaimer in the documentation and/or</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *   other materials provided with the distribution.</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * o Neither the name of Freescale Semiconductor, Inc. nor the names of its</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *   contributors may be used to endorse or promote products derived from this</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> *   software without specific prior written permission.</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &quot;AS IS&quot; AND</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"> * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment"> * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"> * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment"> * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#ifndef __BOOTLOADER_COMMON_H__</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#define __BOOTLOADER_COMMON_H__</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &lt;stdio.h&gt;</span></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &lt;stdarg.h&gt;</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#include &lt;stdint.h&gt;</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#if !defined(WIN32)</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#include &lt;stdbool.h&gt;</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#include &quot;bootloader_common.h&quot;</span></div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#include &quot;fsl_common.h&quot;</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#if defined(BOOTLOADER_HOST)</span></div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="preprocessor">#include &quot;blfwk/bootloader_config.h&quot;</span></div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="preprocessor">#elif defined(BUSPAL)</span></div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="preprocessor">#include &quot;../src/buspal_config.h&quot;</span></div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="preprocessor">#else</span></div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="preprocessor">#include &quot;bootloader_config.h&quot;</span></div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="preprocessor">#include &quot;target_config.h&quot;</span></div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="comment">// Definitions</span></div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="preprocessor">#ifndef NULL</span></div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="preprocessor">#define NULL 0</span></div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="comment">// The following macros are to be used when trying to save code size for specific peripheral configurations</span></div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="comment">// that will only be using one peripheral instance. most of the peripheral driver code can use multiple instances but by</span></div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<span class="comment">// just using one</span></div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="comment">// we can save space</span></div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="preprocessor">#define USE_ONLY_UART(instance) (defined(BL_FEATURE_UART_OPTIMIZE) &amp;&amp; (BL_UART_USED_INSTANCE == instance))</span></div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="preprocessor">#define USE_ONLY_SPI(instance) (defined(BL_FEATURE_SPI_OPTIMIZE) &amp;&amp; (BL_SPI_USED_INSTANCE == instance))</span></div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="preprocessor">#define USE_ONLY_I2C(instance) (defined(BL_FEATURE_I2C_OPTIMIZE) &amp;&amp; (BL_I2C_USED_INSTANCE == instance))</span></div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="preprocessor">#if !defined(MIN)</span></div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="preprocessor">#define MIN(a, b) ((a) &lt; (b) ? (a) : (b))</span></div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;<span class="preprocessor">#if !defined(MAX)</span></div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="preprocessor">#define MAX(a, b) ((a) &gt; (b) ? (a) : (b))</span></div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="preprocessor">#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))</span></div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="preprocessor">#define BSWAP_16(x) (uint16_t)((((x)&amp;0xFF00) &gt;&gt; 0x8) | (((x)&amp;0xFF) &lt;&lt; 0x8))</span></div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="preprocessor">#define BSWAP_32(val) \</span></div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="preprocessor">    (uint32_t)((BSWAP_16((uint32_t)(val) &amp; (uint32_t)0xFFFF) &lt;&lt; 0x10) | (BSWAP_16((uint32_t)((val) &gt;&gt; 0x10))))</span></div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<span class="preprocessor">#ifndef ALIGN_DOWN</span></div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;<span class="preprocessor">#define ALIGN_DOWN(x, a) ((x) &amp; -(a))</span></div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="preprocessor">#ifndef ALIGN_UP</span></div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<span class="preprocessor">#define ALIGN_UP(x, a) (-(-(x) &amp; -(a)))</span></div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;<span class="preprocessor">#define FOUR_CHAR_CODE(a, b, c, d) (((d) &lt;&lt; 24) | ((c) &lt;&lt; 16) | ((b) &lt;&lt; 8) | ((a)))</span></div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;<span class="preprocessor">#if (defined(DEBUG) || defined(_DEBUG)) &amp;&amp; !defined(DEBUG_PRINT_DISABLE)</span></div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> debug_printf(<span class="keyword">const</span> <span class="keywordtype">char</span> *format, ...);</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> debug_printf(<span class="keyword">const</span> <span class="keywordtype">char</span> *format, ...)</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;{</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    va_list args;</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;    va_start(args, format);</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    vprintf(format, args);</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<span class="comment">// Temporarily disable MISRA rule 14.2</span></div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;<span class="preprocessor">#if defined(__ICCARM__)</span></div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;<span class="preprocessor">#pragma diag_suppress = Pm049</span></div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    va_end(args);</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;<span class="preprocessor">#if defined(__ICCARM__)</span></div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;<span class="preprocessor">#pragma diag_default = Pm049</span></div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;}</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;<span class="preprocessor">#else // (DEBUG || _DEBUG) &amp;&amp; !DEBUG_PRINT_DISABLE</span></div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;<span class="comment">// Empty macro to cause debug_printf() calls to disappear.</span></div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;<span class="preprocessor">#define debug_printf(x, ...) \</span></div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;<span class="preprocessor">    do                       \</span></div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;<span class="preprocessor">    {                        \</span></div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;<span class="preprocessor">    } while (false)</span></div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;<span class="preprocessor">#endif // (DEBUG || _DEBUG) &amp;&amp; !DEBUG_PRINT_DISABLE</span></div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;</div><div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="group__bl__hw.html#gafcf22c65520435383dbbf80166373c2e">  136</a></span>&#160;<span class="keyword">typedef</span> void (*<a class="code" href="group__bl__hw.html#gafcf22c65520435383dbbf80166373c2e">pin_irq_callback_t</a>)(uint32_t instance);</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;</div><div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="group__bl__core.html#gae7a87f0e341a04a6fee751176175fefd">  141</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="group__bl__core.html#gae7a87f0e341a04a6fee751176175fefd">_bl_status_groups</a></div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;{</div><div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="group__bl__core.html#ggae7a87f0e341a04a6fee751176175fefda7b33b82772d8f6ee53f685f2fe0e0804">  143</a></span>&#160;    <a class="code" href="group__bl__core.html#ggae7a87f0e341a04a6fee751176175fefda7b33b82772d8f6ee53f685f2fe0e0804">kStatusGroup_Bootloader</a> = <a class="code" href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29ae0c3a94577af5271a1042757d3c8fdc1">kStatusGroup_ApplicationRangeStart</a>, </div><div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="group__bl__core.html#ggae7a87f0e341a04a6fee751176175fefda52c1421d8ea0a8ac30cf7987f3525f05">  144</a></span>&#160;    <a class="code" href="group__bl__core.html#ggae7a87f0e341a04a6fee751176175fefda52c1421d8ea0a8ac30cf7987f3525f05">kStatusGroup_SBLoader</a>,                                        </div><div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="group__bl__core.html#ggae7a87f0e341a04a6fee751176175fefda0295e6a28f7dbf89c64224602568aa4d">  145</a></span>&#160;    <a class="code" href="group__bl__core.html#ggae7a87f0e341a04a6fee751176175fefda0295e6a28f7dbf89c64224602568aa4d">kStatusGroup_MemoryInterface</a>,                                 </div><div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="group__bl__core.html#ggae7a87f0e341a04a6fee751176175fefdaae9ad1ebc64343438b5f3db0e44d6e0b">  146</a></span>&#160;    <a class="code" href="group__bl__core.html#ggae7a87f0e341a04a6fee751176175fefdaae9ad1ebc64343438b5f3db0e44d6e0b">kStatusGroup_PropertyStore</a>,                                   </div><div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="group__bl__core.html#ggae7a87f0e341a04a6fee751176175fefdaa9b2d10290a393e79fe97ad50241e4c9">  147</a></span>&#160;    <a class="code" href="group__bl__core.html#ggae7a87f0e341a04a6fee751176175fefdaa9b2d10290a393e79fe97ad50241e4c9">kStatusGroup_AppCrcCheck</a>,                                     </div><div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="group__bl__core.html#ggae7a87f0e341a04a6fee751176175fefda160b360d06d9c43b36a1d5eb74481f2e">  148</a></span>&#160;    <a class="code" href="group__bl__core.html#ggae7a87f0e341a04a6fee751176175fefda160b360d06d9c43b36a1d5eb74481f2e">kStatusGroup_Packetizer</a>,                                      </div><div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="group__bl__core.html#ggae7a87f0e341a04a6fee751176175fefdab4480cf74173c3593e256bc4b0d2df12">  149</a></span>&#160;    <a class="code" href="group__bl__core.html#ggae7a87f0e341a04a6fee751176175fefdab4480cf74173c3593e256bc4b0d2df12">kStatusGroup_ReliableUpdate</a>                                   </div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;};</div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;</div><div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="group__bl__core.html#gae9db7782b7f2dccb1dc6423be46ffc96">  155</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="group__bl__core.html#gae9db7782b7f2dccb1dc6423be46ffc96">_bl_driver_status_groups</a></div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;{</div><div class="line"><a name="l00157"></a><span class="lineno"><a class="line" href="group__bl__core.html#ggae9db7782b7f2dccb1dc6423be46ffc96ac4d0ba42131a1f2221998e4ee22ca61f">  157</a></span>&#160;    <a class="code" href="group__bl__core.html#ggae9db7782b7f2dccb1dc6423be46ffc96ac4d0ba42131a1f2221998e4ee22ca61f">kStatusGroup_QuadSPIDriver</a> = 4, </div><div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="group__bl__core.html#ggae9db7782b7f2dccb1dc6423be46ffc96a64605e39ebfb169850811207616c7823">  158</a></span>&#160;    <a class="code" href="group__bl__core.html#ggae9db7782b7f2dccb1dc6423be46ffc96a64605e39ebfb169850811207616c7823">kStatusGroup_OTFADDriver</a> = 5,   </div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;};</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;<span class="preprocessor">#if defined(__CC_ARM)</span></div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;<span class="preprocessor">#pragma anon_unions</span></div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;</div><div class="line"><a name="l00168"></a><span class="lineno"><a class="line" href="group__bl__core.html">  168</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">union </span>StandardVersion</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;{</div><div class="line"><a name="l00170"></a><span class="lineno"><a class="line" href="group__bl__core.html">  170</a></span>&#160;    <span class="keyword">struct</span></div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;    {</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;        uint8_t bugfix; </div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;        uint8_t minor;  </div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;        uint8_t major;  </div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;        <span class="keywordtype">char</span> name;      </div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;    };</div><div class="line"><a name="l00177"></a><span class="lineno"><a class="line" href="group__bl__core.html#acd99bb05ca015e7d74448acb1deba7ca">  177</a></span>&#160;    uint32_t <a class="code" href="group__bl__core.html#acd99bb05ca015e7d74448acb1deba7ca">version</a>; </div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;<span class="preprocessor">#if defined(__cplusplus)</span></div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;    StandardVersion()</div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;        : version(0)</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;    {</div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;    }</div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;    StandardVersion(uint32_t version)</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;        : version(version)</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;    {</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;    }</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;} <a class="code" href="group__bl__core.html#unionstandard__version__t">standard_version_t</a>;</div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;<span class="comment">// #define MAKE_VERSION(bugfix, minor, major, name) (((name) &lt;&lt; 24) | ((major) &lt;&lt; 16) | ((minor) &lt;&lt; 8 ) | (bugfix))</span></div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;</div><div class="line"><a name="l00196"></a><span class="lineno"><a class="line" href="group__bl__core.html#ga169fadd1031eb3735ac99235f0db28a6">  196</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="group__bl__core.html#ga169fadd1031eb3735ac99235f0db28a6">_external_mem_identifiers</a></div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;{</div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;    kExternalMemId_QuadSPI0 = 1,</div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;};</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;</div><div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> _bootloader_clock_option</div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;{</div><div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;    kClockOption_EnterBootloader = 0, </div><div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;    kClockOption_ExitBootloader = 1,  </div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;} bootloader_clock_option_t;</div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;</div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;<span class="comment">// Prototypes</span></div><div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;</div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__bl__hw.html#gac12d42451976d7da38d4935131e7d8ac">init_hardware</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;</div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__bl__hw.html#ga68f1c90a2fb322f45877d8799a937500">deinit_hardware</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;</div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__bl__hw.html#ga9c73eba366c6d1d26432541b2dcfd1c0">update_available_peripherals</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;</div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;<span class="comment">// uint32_t read_autobaud_pin(uint32_t instance);</span></div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;</div><div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__bl__hw.html#ga124eb4cf83f072cf1bab94bf5d84c017">configure_clocks</a>(bootloader_clock_option_t option);</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;</div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;uint32_t <a class="code" href="group__bl__hw.html#gab82079fc48df318974d57942054a1e31">get_available_lirc_clock</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;</div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;uint32_t <a class="code" href="group__bl__hw.html#gaedbaf90fb8a68228c5e8b1d3b9c99f53">get_bus_clock</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;</div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;uint32_t <a class="code" href="group__bl__hw.html#gaf0fa7251a11474ee329c233e1a384e2e">get_system_core_clock</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;</div><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="group__bl__hw.html#ga10f17b9ceb73e44505465ade74afc65d">usb_clock_init</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;</div><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;uint32_t <a class="code" href="group__bl__hw.html#ga4460f507113f454df8a820ffe7ebc4cb">get_uart_clock</a>(uint32_t instance);</div><div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;</div><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="group__bl__hw.html#gac3ab35727c2f88998307291b564883cd">is_boot_pin_asserted</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;</div><div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__bl__hw.html#ga21ae3beb434458bc93918455d68c47e9">enable_autobaud_pin_irq</a>(uint32_t instance, <a class="code" href="group__bl__hw.html#gafcf22c65520435383dbbf80166373c2e">pin_irq_callback_t</a> func);</div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;</div><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__bl__hw.html#ga45c8d855d903f9b450586c5e91404dc8">disable_autobaud_pin_irq</a>(uint32_t instance);</div><div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;</div><div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__bl__hw.html#gae7ee340978f5c25f52f0cad1457c6616">Reset_Handler</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;</div><div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__bl__hw.html#gae5708fee21b6857aa62c851d0ac33412">bootloader_watchdog_init</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;</div><div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__bl__hw.html#ga6717df810fa24f6c7525a41be28e9c47">bootloader_watchdog_service</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;</div><div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__bl__hw.html#ga90006ff23f7975a336869a06d5541fd1">bootloader_watchdog_deinit</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;</div><div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="group__bl__hw.html#gac7d70204f30a9e23866da7bcfdd948ae">qspi_need_configure</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;</div><div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;<a class="code" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> <a class="code" href="group__bl__hw.html#ga161d2760731961f2532901d3efd63256">otfad_init_as_needed</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;</div><div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="group__bl__hw.html#gac207b00efbc744acd6a04309e1366f77">is_qspi_present</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;</div><div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="group__bl__hw.html#ga60e304d0c2c2f99a61e823669b0256b8">is_otfad_present</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;</div><div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="group__bl__hw.html#ga7bc70abb20b9e0c31fc752a873125e6a">is_ltc_present</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;</div><div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;<a class="code" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> <a class="code" href="group__bl__hw.html#gaa8c3503b10870ef624c348977f9a33a7">get_qspi_otfad_init_status</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;</div><div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__bl__hw.html#gab82dcf863a94f881114d8e4a1b6c5388">update_qspi_otfad_init_status</a>(<a class="code" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> initStatus);</div><div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;</div><div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="group__bl__hw.html#ga2e1d6421f68f3daf8d7888e153dd06ce">is_secondary_i2c_slave_address_enabled</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;</div><div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="group__bl__hw.html#ga8259351f8c94fd9fb4cdd4fc04656b22">is_in_execute_only_region</a>(uint32_t start, uint32_t lengthInBytes);</div><div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;</div><div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="group__bl__hw.html#ga86e4f625af55aeee6c5db67109619995">is_second_core_present</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;</div><div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;</div><div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;<span class="preprocessor">#endif // __BOOTLOADER_COMMON_H__</span></div><div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;<span class="comment">// EOF</span></div><div class="ttc" id="group__bl__hw_html_gaa8c3503b10870ef624c348977f9a33a7"><div class="ttname"><a href="group__bl__hw.html#gaa8c3503b10870ef624c348977f9a33a7">get_qspi_otfad_init_status</a></div><div class="ttdeci">status_t get_qspi_otfad_init_status(void)</div><div class="ttdoc">Return status for intializing qspi and otfad modules. </div><div class="ttdef"><b>Definition:</b> bl_misc.c:236</div></div>
<div class="ttc" id="group__bl__core_html_ggae7a87f0e341a04a6fee751176175fefda0295e6a28f7dbf89c64224602568aa4d"><div class="ttname"><a href="group__bl__core.html#ggae7a87f0e341a04a6fee751176175fefda0295e6a28f7dbf89c64224602568aa4d">kStatusGroup_MemoryInterface</a></div><div class="ttdoc">Memory interface status group number (102). </div><div class="ttdef"><b>Definition:</b> bootloader_common.h:145</div></div>
<div class="ttc" id="group__bl__core_html_acd99bb05ca015e7d74448acb1deba7ca"><div class="ttname"><a href="group__bl__core.html#acd99bb05ca015e7d74448acb1deba7ca">standard_version_t::version</a></div><div class="ttdeci">uint32_t version</div><div class="ttdoc">combined version numbers </div><div class="ttdef"><b>Definition:</b> bootloader_common.h:177</div></div>
<div class="ttc" id="group__ksdk__common_html_gga7ff0b98bb1341c07acefb1473b6eda29ae0c3a94577af5271a1042757d3c8fdc1"><div class="ttname"><a href="group__ksdk__common.html#gga7ff0b98bb1341c07acefb1473b6eda29ae0c3a94577af5271a1042757d3c8fdc1">kStatusGroup_ApplicationRangeStart</a></div><div class="ttdef"><b>Definition:</b> fsl_common.h:105</div></div>
<div class="ttc" id="group__bl__hw_html_ga8259351f8c94fd9fb4cdd4fc04656b22"><div class="ttname"><a href="group__bl__hw.html#ga8259351f8c94fd9fb4cdd4fc04656b22">is_in_execute_only_region</a></div><div class="ttdeci">bool is_in_execute_only_region(uint32_t start, uint32_t lengthInBytes)</div><div class="ttdoc">Check if data to be accessed is in execute-only region. </div><div class="ttdef"><b>Definition:</b> bl_misc.c:249</div></div>
<div class="ttc" id="group__bl__hw_html_gab82079fc48df318974d57942054a1e31"><div class="ttname"><a href="group__bl__hw.html#gab82079fc48df318974d57942054a1e31">get_available_lirc_clock</a></div><div class="ttdeci">uint32_t get_available_lirc_clock(void)</div><div class="ttdoc">Returns the available lirc clock frequency in Hertz. </div></div>
<div class="ttc" id="group__bl__hw_html_gae5708fee21b6857aa62c851d0ac33412"><div class="ttname"><a href="group__bl__hw.html#gae5708fee21b6857aa62c851d0ac33412">bootloader_watchdog_init</a></div><div class="ttdeci">void bootloader_watchdog_init(void)</div><div class="ttdoc">Initialize watchdog. </div></div>
<div class="ttc" id="group__bl__hw_html_gae7ee340978f5c25f52f0cad1457c6616"><div class="ttname"><a href="group__bl__hw.html#gae7ee340978f5c25f52f0cad1457c6616">Reset_Handler</a></div><div class="ttdeci">void Reset_Handler(void)</div><div class="ttdoc">Declaration for the reset handler, which is defined in assembler. </div></div>
<div class="ttc" id="group__bl__hw_html_gaedbaf90fb8a68228c5e8b1d3b9c99f53"><div class="ttname"><a href="group__bl__hw.html#gaedbaf90fb8a68228c5e8b1d3b9c99f53">get_bus_clock</a></div><div class="ttdeci">uint32_t get_bus_clock(void)</div><div class="ttdoc">Returns the current bus clock frequency in Hertz. </div><div class="ttdef"><b>Definition:</b> MK65F18/src/bus_pal_hardware.c:858</div></div>
<div class="ttc" id="group__bl__hw_html_ga10f17b9ceb73e44505465ade74afc65d"><div class="ttname"><a href="group__bl__hw.html#ga10f17b9ceb73e44505465ade74afc65d">usb_clock_init</a></div><div class="ttdeci">bool usb_clock_init(void)</div><div class="ttdoc">Configure usb clock. </div><div class="ttdef"><b>Definition:</b> MK65F18/src/bus_pal_hardware.c:285</div></div>
<div class="ttc" id="group__bl__core_html_ggae7a87f0e341a04a6fee751176175fefda7b33b82772d8f6ee53f685f2fe0e0804"><div class="ttname"><a href="group__bl__core.html#ggae7a87f0e341a04a6fee751176175fefda7b33b82772d8f6ee53f685f2fe0e0804">kStatusGroup_Bootloader</a></div><div class="ttdoc">Bootloader status group number (100). </div><div class="ttdef"><b>Definition:</b> bootloader_common.h:143</div></div>
<div class="ttc" id="group__bl__hw_html_ga124eb4cf83f072cf1bab94bf5d84c017"><div class="ttname"><a href="group__bl__hw.html#ga124eb4cf83f072cf1bab94bf5d84c017">configure_clocks</a></div><div class="ttdeci">void configure_clocks(bootloader_clock_option_t option)</div><div class="ttdoc">Returns the logic level of the board specific GPIO pin used for autobaud. </div></div>
<div class="ttc" id="group__bl__hw_html_ga45c8d855d903f9b450586c5e91404dc8"><div class="ttname"><a href="group__bl__hw.html#ga45c8d855d903f9b450586c5e91404dc8">disable_autobaud_pin_irq</a></div><div class="ttdeci">void disable_autobaud_pin_irq(uint32_t instance)</div><div class="ttdoc">Disables the autobaud pin IRQ for the instance passed. </div></div>
<div class="ttc" id="group__bl__core_html_gae7a87f0e341a04a6fee751176175fefd"><div class="ttname"><a href="group__bl__core.html#gae7a87f0e341a04a6fee751176175fefd">_bl_status_groups</a></div><div class="ttdeci">_bl_status_groups</div><div class="ttdoc">Bootloader status group numbers. </div><div class="ttdef"><b>Definition:</b> bootloader_common.h:141</div></div>
<div class="ttc" id="group__bl__hw_html_gaf0fa7251a11474ee329c233e1a384e2e"><div class="ttname"><a href="group__bl__hw.html#gaf0fa7251a11474ee329c233e1a384e2e">get_system_core_clock</a></div><div class="ttdeci">uint32_t get_system_core_clock(void)</div><div class="ttdoc">Returns the current core clock frequency in Hertz. </div></div>
<div class="ttc" id="group__bl__hw_html_gac12d42451976d7da38d4935131e7d8ac"><div class="ttname"><a href="group__bl__hw.html#gac12d42451976d7da38d4935131e7d8ac">init_hardware</a></div><div class="ttdeci">void init_hardware(void)</div><div class="ttdoc">Initialize the hardware such as pinmux. </div><div class="ttdef"><b>Definition:</b> hardware_init_MK80F25615.c:49</div></div>
<div class="ttc" id="group__bl__core_html_gae9db7782b7f2dccb1dc6423be46ffc96"><div class="ttname"><a href="group__bl__core.html#gae9db7782b7f2dccb1dc6423be46ffc96">_bl_driver_status_groups</a></div><div class="ttdeci">_bl_driver_status_groups</div><div class="ttdoc">Driver status group numbers. </div><div class="ttdef"><b>Definition:</b> bootloader_common.h:155</div></div>
<div class="ttc" id="group__bl__core_html_ggae9db7782b7f2dccb1dc6423be46ffc96ac4d0ba42131a1f2221998e4ee22ca61f"><div class="ttname"><a href="group__bl__core.html#ggae9db7782b7f2dccb1dc6423be46ffc96ac4d0ba42131a1f2221998e4ee22ca61f">kStatusGroup_QuadSPIDriver</a></div><div class="ttdoc">QSPI driver status group number. </div><div class="ttdef"><b>Definition:</b> bootloader_common.h:157</div></div>
<div class="ttc" id="group__bl__core_html_ggae7a87f0e341a04a6fee751176175fefdaae9ad1ebc64343438b5f3db0e44d6e0b"><div class="ttname"><a href="group__bl__core.html#ggae7a87f0e341a04a6fee751176175fefdaae9ad1ebc64343438b5f3db0e44d6e0b">kStatusGroup_PropertyStore</a></div><div class="ttdoc">Property store status group number (103). </div><div class="ttdef"><b>Definition:</b> bootloader_common.h:146</div></div>
<div class="ttc" id="group__bl__hw_html_gafcf22c65520435383dbbf80166373c2e"><div class="ttname"><a href="group__bl__hw.html#gafcf22c65520435383dbbf80166373c2e">pin_irq_callback_t</a></div><div class="ttdeci">void(* pin_irq_callback_t)(uint32_t instance)</div><div class="ttdoc">Callback function invoked for a pin change interrupt. </div><div class="ttdef"><b>Definition:</b> bootloader_common.h:136</div></div>
<div class="ttc" id="group__bl__core_html_ggae7a87f0e341a04a6fee751176175fefda52c1421d8ea0a8ac30cf7987f3525f05"><div class="ttname"><a href="group__bl__core.html#ggae7a87f0e341a04a6fee751176175fefda52c1421d8ea0a8ac30cf7987f3525f05">kStatusGroup_SBLoader</a></div><div class="ttdoc">SB loader status group number (101). </div><div class="ttdef"><b>Definition:</b> bootloader_common.h:144</div></div>
<div class="ttc" id="group__bl__core_html_ga169fadd1031eb3735ac99235f0db28a6"><div class="ttname"><a href="group__bl__core.html#ga169fadd1031eb3735ac99235f0db28a6">_external_mem_identifiers</a></div><div class="ttdeci">_external_mem_identifiers</div><div class="ttdoc">External memory identifiers. </div><div class="ttdef"><b>Definition:</b> bootloader_common.h:196</div></div>
<div class="ttc" id="group__bl__hw_html_ga4460f507113f454df8a820ffe7ebc4cb"><div class="ttname"><a href="group__bl__hw.html#ga4460f507113f454df8a820ffe7ebc4cb">get_uart_clock</a></div><div class="ttdeci">uint32_t get_uart_clock(uint32_t instance)</div><div class="ttdoc">Returns the value in MHz of the UART clock based on the instance. </div><div class="ttdef"><b>Definition:</b> host_hardware.c:303</div></div>
<div class="ttc" id="group__bl__hw_html_gac7d70204f30a9e23866da7bcfdd948ae"><div class="ttname"><a href="group__bl__hw.html#gac7d70204f30a9e23866da7bcfdd948ae">qspi_need_configure</a></div><div class="ttdeci">bool qspi_need_configure(void)</div><div class="ttdoc">Determine if QSPI module to be configured. </div><div class="ttdef"><b>Definition:</b> bl_misc.c:97</div></div>
<div class="ttc" id="group__bl__hw_html_ga86e4f625af55aeee6c5db67109619995"><div class="ttname"><a href="group__bl__hw.html#ga86e4f625af55aeee6c5db67109619995">is_second_core_present</a></div><div class="ttdeci">bool is_second_core_present(void)</div><div class="ttdoc">Check if second core is present. </div></div>
<div class="ttc" id="group__bl__hw_html_ga161d2760731961f2532901d3efd63256"><div class="ttname"><a href="group__bl__hw.html#ga161d2760731961f2532901d3efd63256">otfad_init_as_needed</a></div><div class="ttdeci">status_t otfad_init_as_needed(void)</div><div class="ttdoc">Initialize QSPI and OTFAD module. </div><div class="ttdef"><b>Definition:</b> bl_misc.c:108</div></div>
<div class="ttc" id="group__bl__core_html_unionstandard__version__t"><div class="ttname"><a href="group__bl__core.html#unionstandard__version__t">standard_version_t</a></div><div class="ttdoc">Structure of version property. </div><div class="ttdef"><b>Definition:</b> bootloader_common.h:168</div></div>
<div class="ttc" id="group__bl__hw_html_ga9c73eba366c6d1d26432541b2dcfd1c0"><div class="ttname"><a href="group__bl__hw.html#ga9c73eba366c6d1d26432541b2dcfd1c0">update_available_peripherals</a></div><div class="ttdeci">void update_available_peripherals(void)</div><div class="ttdoc">Update available peripherals based on specific chips. </div></div>
<div class="ttc" id="group__bl__hw_html_ga6717df810fa24f6c7525a41be28e9c47"><div class="ttname"><a href="group__bl__hw.html#ga6717df810fa24f6c7525a41be28e9c47">bootloader_watchdog_service</a></div><div class="ttdeci">void bootloader_watchdog_service(void)</div><div class="ttdoc">Service watchdog. </div></div>
<div class="ttc" id="group__bl__hw_html_ga90006ff23f7975a336869a06d5541fd1"><div class="ttname"><a href="group__bl__hw.html#ga90006ff23f7975a336869a06d5541fd1">bootloader_watchdog_deinit</a></div><div class="ttdeci">void bootloader_watchdog_deinit(void)</div><div class="ttdoc">De-initialize watchdog. </div></div>
<div class="ttc" id="group__bl__core_html_ggae7a87f0e341a04a6fee751176175fefdaa9b2d10290a393e79fe97ad50241e4c9"><div class="ttname"><a href="group__bl__core.html#ggae7a87f0e341a04a6fee751176175fefdaa9b2d10290a393e79fe97ad50241e4c9">kStatusGroup_AppCrcCheck</a></div><div class="ttdoc">Application crc check status group number (104). </div><div class="ttdef"><b>Definition:</b> bootloader_common.h:147</div></div>
<div class="ttc" id="group__bl__hw_html_ga21ae3beb434458bc93918455d68c47e9"><div class="ttname"><a href="group__bl__hw.html#ga21ae3beb434458bc93918455d68c47e9">enable_autobaud_pin_irq</a></div><div class="ttdeci">void enable_autobaud_pin_irq(uint32_t instance, pin_irq_callback_t func)</div><div class="ttdoc">Enables the autobaud pin IRQ for the specific instance passed. </div></div>
<div class="ttc" id="group__bl__hw_html_gac207b00efbc744acd6a04309e1366f77"><div class="ttname"><a href="group__bl__hw.html#gac207b00efbc744acd6a04309e1366f77">is_qspi_present</a></div><div class="ttdeci">bool is_qspi_present(void)</div><div class="ttdoc">Determine if QSPI memory is present or not. </div><div class="ttdef"><b>Definition:</b> bl_misc.c:152</div></div>
<div class="ttc" id="group__bl__core_html_ggae9db7782b7f2dccb1dc6423be46ffc96a64605e39ebfb169850811207616c7823"><div class="ttname"><a href="group__bl__core.html#ggae9db7782b7f2dccb1dc6423be46ffc96a64605e39ebfb169850811207616c7823">kStatusGroup_OTFADDriver</a></div><div class="ttdoc">OTFAD driver status group number. </div><div class="ttdef"><b>Definition:</b> bootloader_common.h:158</div></div>
<div class="ttc" id="group__bl__hw_html_ga7bc70abb20b9e0c31fc752a873125e6a"><div class="ttname"><a href="group__bl__hw.html#ga7bc70abb20b9e0c31fc752a873125e6a">is_ltc_present</a></div><div class="ttdeci">bool is_ltc_present(void)</div><div class="ttdoc">Determine if LTC module is present or not. </div><div class="ttdef"><b>Definition:</b> bl_misc.c:175</div></div>
<div class="ttc" id="group__bl__hw_html_gac3ab35727c2f88998307291b564883cd"><div class="ttname"><a href="group__bl__hw.html#gac3ab35727c2f88998307291b564883cd">is_boot_pin_asserted</a></div><div class="ttdeci">bool is_boot_pin_asserted(void)</div><div class="ttdoc">Returns true if reset BOOTROM mode is selected. </div></div>
<div class="ttc" id="group__bl__hw_html_ga68f1c90a2fb322f45877d8799a937500"><div class="ttname"><a href="group__bl__hw.html#ga68f1c90a2fb322f45877d8799a937500">deinit_hardware</a></div><div class="ttdeci">void deinit_hardware(void)</div><div class="ttdoc">DeInitialize the hardware such as disabling port clock gate. </div></div>
<div class="ttc" id="group__bl__hw_html_ga60e304d0c2c2f99a61e823669b0256b8"><div class="ttname"><a href="group__bl__hw.html#ga60e304d0c2c2f99a61e823669b0256b8">is_otfad_present</a></div><div class="ttdeci">bool is_otfad_present(void)</div><div class="ttdoc">Determine if OTFAD module is present or not. </div><div class="ttdef"><b>Definition:</b> bl_misc.c:162</div></div>
<div class="ttc" id="group__bl__core_html_ggae7a87f0e341a04a6fee751176175fefda160b360d06d9c43b36a1d5eb74481f2e"><div class="ttname"><a href="group__bl__core.html#ggae7a87f0e341a04a6fee751176175fefda160b360d06d9c43b36a1d5eb74481f2e">kStatusGroup_Packetizer</a></div><div class="ttdoc">Packetizer status group number (105). </div><div class="ttdef"><b>Definition:</b> bootloader_common.h:148</div></div>
<div class="ttc" id="group__ksdk__common_html_gaaabdaf7ee58ca7269bd4bf24efcde092"><div class="ttname"><a href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a></div><div class="ttdeci">int32_t status_t</div><div class="ttdoc">Type used for all status and error return values. </div><div class="ttdef"><b>Definition:</b> fsl_common.h:121</div></div>
<div class="ttc" id="group__bl__core_html_ggae7a87f0e341a04a6fee751176175fefdab4480cf74173c3593e256bc4b0d2df12"><div class="ttname"><a href="group__bl__core.html#ggae7a87f0e341a04a6fee751176175fefdab4480cf74173c3593e256bc4b0d2df12">kStatusGroup_ReliableUpdate</a></div><div class="ttdoc">Reliable Update status groupt number (106). </div><div class="ttdef"><b>Definition:</b> bootloader_common.h:149</div></div>
<div class="ttc" id="group__bl__hw_html_gab82dcf863a94f881114d8e4a1b6c5388"><div class="ttname"><a href="group__bl__hw.html#gab82dcf863a94f881114d8e4a1b6c5388">update_qspi_otfad_init_status</a></div><div class="ttdeci">void update_qspi_otfad_init_status(status_t initStatus)</div><div class="ttdoc">Update status for intializing qspi and otfad modules </div><div class="ttdef"><b>Definition:</b> bl_misc.c:242</div></div>
<div class="ttc" id="group__bl__hw_html_ga2e1d6421f68f3daf8d7888e153dd06ce"><div class="ttname"><a href="group__bl__hw.html#ga2e1d6421f68f3daf8d7888e153dd06ce">is_secondary_i2c_slave_address_enabled</a></div><div class="ttdeci">bool is_secondary_i2c_slave_address_enabled(void)</div><div class="ttdoc">Determine is the Secondary I2C slave address is enabled. </div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_b0856f6b0d80ccb263b2f415c91f9e17.html">include</a></li><li class="navelem"><b>bootloader_common.h</b></li>
    <li class="footer">Generated on Mon Mar 7 2016 16:48:23 for Kinetis Bootloader by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
